import * as types from '../mutation-types'
export const mutations = {
    [types.GET_HOME_PAGE] (state,data) {
        state.homePage = data;
    },
    [types.GET_HOME_CONTENT] (state,content) {
        state.homeContent = content;
    },
    [types.GET_HOME_NOTICE] (state,{homeNotice}) {
        state.homeNotice = homeNotice;
    },
    [types.SET_INDEX_TAG] (state,tag) {
        state.indextag = tag
    },
    setIndexNav (state,nav) {
        state.indexNav = nav
    },
    setIndexNotice (state,notice) {
        state.indexNotice = notice
    },
    setShowFlashSale (state,is) {
        state.show_flashSale = is
    },
    setHomeNav (state,navlist) {
        state.homeNav = navlist
    },
    setShowTimeTitle(state,s) {
        state.show_timeTitle = s
    }
}